package com.ssy.lingxi.product.repository.price;

import com.ssy.lingxi.product.entity.price.GoodsPrice;
import com.ssy.lingxi.product.entity.price.GoodsPriceHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 货品价格历史记录持久化层
 * @author lxc
 * @version 2.0.0
 * @date 2022/3/25
 */
public interface GoodsPriceHistoryRepository extends JpaRepository<GoodsPriceHistory,Long>, JpaSpecificationExecutor<GoodsPriceHistory> {

    Page<GoodsPriceHistory> findByGoodsPrice(GoodsPrice goodsPrice, Pageable page);
}
